#pragma once
#include <Arduino.h>

class FlameSensor {
public:
    explicit FlameSensor(uint8_t doPin);  // 使用explicit防止隐式转换
    void begin();
    bool isFlameDetected() const;
    
private:
    const uint8_t _doPin;
    static constexpr uint32_t DEBOUNCE_DELAY = 50; // 消抖延时(ms)
};
